package main

import "fmt"

func main() {
	s := "hello world"

	fmt.Printf("s len %d s[0] %c s[7] %c \r", len(s), s[0], s[7])

	fmt.Println(s[0:5])
	fmt.Println(s[:5])
	fmt.Println(s[6:])
	fmt.Println(s[:])

	fmt.Println("goodbye " + s[6:])

}
